package com.hs.egova.hibernate;

import org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties;

/** 工具用来生成SQL与java类
 * @author husheng
 * @version v1.0
 * @date 2021/7/26 15:56
 * @email husheng@egova.com.cn
 */
public class HibernateTool {
    public static String HIBERNATE_DIALECT_ORACLE = "org.hibernate.dialect.Oracle10gDialect";
    public static String HIBERNATE_DIALECT_POSTGRESQLDIALECT = "org.hibernate.dialect.PostgreSQLDialect";
    public static String HIBERNATE_DIALECT_SQLSERVER = "org.hibernate.dialect.SQLServerDialect";
    public static String HIBERNATE_DIALECT_DB2 = "org.hibernate.dialect.DB2Dialect";
    public static String HIBERNATE_DIALECT_MYSQL = "org.hibernate.dialect.MySQLDialect";
    public static String HIBERNATE_DIALECT = null;
    public static Integer DB_TYPE = null;
    public static final int DB_TYPE_ORACLE = 1;
    public static final int DB_TYPE_MYSQL = 2;
    public static int SPECIAL_SQL_TYPE = -1;
    public static HibernateProperties hibernateProperties;

    public static String getHibernateDialect() {
        return HIBERNATE_DIALECT_MYSQL;
    }

    public static int getDBType() {
        return DB_TYPE_MYSQL;
    }
}
